package org.cfx.org.service.impl;

import org.cfx.basic.service.impl.BaseServiceImpl;
import org.cfx.org.domain.Department;
import org.cfx.org.mapper.DepartmentMapper;
import org.cfx.org.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author RTX 9090
 */
@Service
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> queryTree() {
        return departmentMapper.queryTree();
    }
}
